#include <stdlib.h>
#include "GUI.h"
#include "WindowDLG.h"

extern GUI_CONST_STORAGE GUI_BITMAP bmwebradio_logo;

WM_HWIN hWindow;

void GUITask(void);

void GUITask(void) {
	WM_HWIN hItem;
	
  GUI_Init();
	GUI_Clear();
	LCD_SetSizeEx (0, 320, 240);
	
  GUI_SetColor(GUI_BLACK);
  GUI_FillRect(0, 0, LCD_GetXSize(), LCD_GetYSize());
  	
	LCD_SetVSizeEx(0, 320, 960);

	hWindow = CreateWindowDLG();
  if (hItem == 0) {
    WM_DeleteWindow(hWindow);
  } else {
		GUI_ExecCreatedDialog(hWindow);
    WM_SetFocus(hWindow);
		GUI_SetOrg(0,0);
    while (1) {
      GUI_Delay(100);
    }
  }

}
